package com.ruoyi.common.entity.VO.shop;

import com.ruoyi.common.entity.DO.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.math.BigDecimal;

@EqualsAndHashCode(callSuper = true)
@Data
public class ShopVO extends BaseDO {
    private Long id;
    //上级店铺ID
    private Long parentId;
    private String parentShopName;
    //绑定的后台id
    private Long uid;
    private String productCategoryName;
    private String shopName;
    private String shopLogo;
    private String shopCode;
    private String shopTel;
    private BigDecimal balance;
    private String shopAddress;
    //店铺审核状态
    private Integer reviewStatus;
    private String applicantName;
    @NotNull(message = "请填写开店人手机号码！")
    @Pattern(regexp = "^[1]([3-9])[0-9]{9}$", message = "请输入正确的手机号")
    private String applicantPhone;
    @NotNull(message = "请填写开店人邮箱！")
    @Email(message = "请输入正确的邮箱")
    private String applicantEmail;
    private String invitationQrCodeUrl;
    private String invitationPosterUrl;
    private String businessLicenceNum;
    private String businessLicenceImg;
    private double distance;//与定位的距离
    private Integer isEnable;

}
